<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	<link href="../../styles/shopCar/shopCar.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="warp">
			<p class="topTitleRoot">|<span class="theShopCar">购物车</span>|<span class="thePay">付款</span>|</p>
			<table rules=rows>
				<thead>
					<tr>
						<td class="col1"><input type="checkbox"/>全选</td>
						<td class="col2">良品</td>
						<td class="col3">数量</td>
						<td class="col4">单价（元）</td>
						<td class="col5">小计（元）</td>
						<td class="col6">操作</td>
					</tr>
				</thead>
				<tbody>
					<!-- <tr>
						<td class="col1">
							<input type="checkbox"/>
							<img src="https://imgs-qn.iliangcang.com/ware/goods/icon/2/265/265041.jpg">
						</td>
						<td class="col2">
							<h6>桂花冰酿 | 低度果露酒</h6>
							<p class="GoodsAttrs">容量:750ml;</p>
							<p class="favo">限时特惠</p>
						</td>
						<td class="col3">
							<a class="reduce" href="javascript:void(0)"></a>
							<span>4</span>
							<a class="puls" href="javascript:void(0)"></a>
						</td>
						<td class="col4"><p class="neoPrice">168.00</p><p class="price"></p></td>
						<td class="col5"><p class="neoPrice">672.00</p><p class="price"></p></td>
						<td class="col6"><a class="deleteBtn" href="javascript:void(0)">删除</a></td>
					</tr>
					<tr>
						<td class="col1">
							<input type="checkbox"/>
							<img src="https://imgs-qn.iliangcang.com/ware/goods/icon/2/265/265041.jpg">
						</td>
						<td class="col2">
							<h6>桂花冰酿 | 低度果露酒</h6>
							<p class="GoodsAttrs">容量:750ml;</p>
							<p class="favo">限时特惠</p>
						</td>
						<td class="col3">
							<a class="reduce" href="javascript:void(0)"></a>
							<span>4</span>
							<a class="puls" href="javascript:void(0)"></a>
						</td>
						<td class="col4"><p class="neoPrice">168.00</p><p class="price">234</p></td>
						<td class="col5"><p class="neoPrice">672.00</p><p class="price">455</p></td>
						<td class="col6"><a class="deleteBtn" href="javascript:void(0)">删除</a></td>
					</tr> -->
				</tbody>
			</table>
			<p class="totalPrice">良品总价<font>/</font><span id="showTotalPrice">¥1374.00</span></p>
			<p id="oldTotalPrice">1506.00</p>
			<p class="totalSave">为您节省 <span id="saveMoney">132.00</span> 元</p>
			<a class="settleBtn" href="javascript:void(0)">立即结算</a>
			<div class="continueRoot">
				<fieldset class="continueShop">
					<legend><a href="javascript:void(0)">继续购物</a></legend>
				</fieldset>
			</div>
			
		</div>
	</body>
	<script src="../../static/scripts/require.js" data-main="../../scripts/shopCar/shopCar.js" type="text/javascript" charset="UTF-8"></script>
	<script type="text/html" id="shopCarList">
		
		{{each list}}
		
			<tr>
				<td class="col1">
					<input type="checkbox"/>
					<img src={{$value.goodsImg}}>
				</td>
				<td class="col2">
					<h6>{{$value.title}}</h6>
					<p class="GoodsAttrs">{{$value.attr}}</p>
					{{set reduce = $value.reduce == 1 ? "block" : "none"}}
					<p class="favo" style="display:{{reduce}};">限时特惠</p>
				</td>
				<td class="col3">
					<a class="reduce" href="javascript:void(0)"></a>
					<span class="currentNum">{{$value.num}}</span>
					<a class="puls" href="javascript:void(0)"></a>
				</td>
				{{if $value.neoPrice !== 0}}
					<td class="col4">
						<p class="neoPrice singleNewPrice">{{$value.neoPrice.toFixed(2)}}</p>
						<p class="price singleOldPrice">{{$value.price.toFixed(2)}}</p>
					</td>
					<td class="col5">
						<p class="neoPrice totelSingleNewPrice">{{($value.neoPrice * $value.num).toFixed(2)}}</p>
						<p class="price totelSingleOldPrice">{{($value.price * $value.num).toFixed(2)}}</p>
					</td>
				{{else}}
					<td class="col4">
						<p class="neoPrice singleNewPrice">{{$value.price.toFixed(2)}}</p>
						<p class="price singleOldPrice" style="display:none;"></p>
					</td>
					<td class="col5">
						<p class="neoPrice totelSingleNewPrice">{{($value.price * $value.num).toFixed(2)}}</p>
						<p class="price totelSingleOldPrice" style="display:none;"></p>
					</td>
				{{/if}}
				<td class="col6"><a class="deleteBtn" href="javascript:void(0)">删除</a></td>
			</tr>
		
		{{/each}}
		
	</script>
</html>
